﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for CatalogBUS
/// </summary>
public class CatalogBUS
{
    CatalogDAL catalogDAL = new CatalogDAL();
	public CatalogBUS()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public DataTable returnAllCatalog() {
        return catalogDAL.getAllCatalog();
    }

    public DataTable returnCatalogByID(int id)
    {
        return catalogDAL.getCatalogByID(id);
    }

    public bool updateCatalog(int id, string name) {
        return catalogDAL.updateCatalog(id,name);
    }

    public bool updateCatalogStatus(int id) {
        return catalogDAL.updateCatalogStatus(id);
    }

    public bool insertCatalog(string Name) {
        return catalogDAL.insertCatalog(Name);
    }
}